<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <link rel="shortcut icon" href="/favicon.ico" type="image/x-icon">
    <!-- import CSS -->
    <link rel="stylesheet" href="https://cdn.staticfile.org/element-ui/2.15.9/theme-chalk/index.css">
    <style>
        .el-header img{
            vertical-align: middle;/*中间对齐*/
        }
        .el-header a{
            color: #666;
            text-decoration: none;
        }
        .el-table .el-table__cell{
            padding: 0;/*去掉自带的内边距*/
        }
        .el-table .cell{
            /*设置一行显示, 超出部分显示省略号*/
            white-space: nowrap;
        }
        .el-carousel__item h3 {
            color: #475669;
            font-size: 14px;
            opacity: 0.75;
            line-height: 200px;
            margin: 0;
        }

        .el-carousel__item:nth-child(2n) {
            background-color: #99a9bf;
        }

        .el-carousel__item:nth-child(2n+1) {
            background-color: #d3dce6;
        }
        .text {
            font-size: 14px;
        }

        .item {
            margin-bottom: 10px;
        }

        .clearfix:before,
        .clearfix:after {
            display: table;
            content: "";
        }
        .clearfix:after {
            clear: both
        }

        .box-card {
            width: 480px;
        }
    </style>
</head>


<body>
<div id="app">
    <el-container>
        <el-header height="200px">
            <div style="width: 1200px;margin: 10px auto">
                <img src="imgs/index_head_img.png" width="600" alt="">
                <div style="float: right;position:relative;top:10px">
                    <div style="
                    float: right;
                    top:10px;
                    padding: 0 5px;
                    margin: 5px 0;
                    font-size: 15px;
                    ">
                        <a href="/login.html" style="color: #E6A23C;">登陆后台管理系统</a>
                        <el-divider direction="vertical"></el-divider>
                        <a href="reg.html" style="color: #E6A23C;">注册我的账号</a>

                    </div>

                    <el-input type="text" placeholder="请输入搜索的内容">
                        <!--slot="append"设置搜索按钮嵌入到文本框里面-->
                        <el-button slot="append" @click="search()" icon="el-icon-search"></el-button>
                    </el-input>
                </div>

            </div>
            <div style="background-color: #E6A23C">
                <el-menu style="width: 1200px;margin: 0 auto" mode="horizontal"
                         background-color="#E6A23C" text-color="#fff"
                         active-text-color="#0f0" @select="handleSelect">
                    <el-menu-item index="1-1">首页</el-menu-item>
                    <el-menu-item index="1-2">关于我们</el-menu-item>
                    <el-menu-item index="1-3">新闻动态</el-menu-item>
                    <el-menu-item index="1-4">环境设施</el-menu-item>
                </el-menu>
            </div>
        </el-header>


        <el-main style="width: 1200px;margin: 0 auto">
            <el-row gutter="20">
                <el-col span="24">
                    <!--首页走马灯开始-->
                    <el-carousel height="300px" >

                        <el-carousel-item >
                            <img src="imgs/index_img02(0.25).png" width="1200px" height="100%">
                        </el-carousel-item>

                        <el-carousel-item >
                            <img src="imgs/index_img01(0.25).png" width="1200px" height="100%">
                        </el-carousel-item>

                        <el-carousel-item >
                            <img src="imgs/index_img03(0.25).png" width="1200px" height="100%">
                        </el-carousel-item>

                    </el-carousel>
                    <!--走马灯结束-->
                </el-col>
            </el-row>
            <!--第二行开始-->
            <el-row gutter="20">
                <el-col style="margin: 10px 0" span="6">
                    <!--小窗口图片开始-->
                    <el-carousel height="200px" direction="vertical" :autoplay="false">
                        <el-carousel-item >
                            <img src="imgs/index_img_little01(1.0).png" width="100%" alt="">
                        </el-carousel-item>
                        <el-carousel-item >
                            <img src="imgs/index_img_little02(1.0).png" width="100%" alt="">
                        </el-carousel-item>
                        <el-carousel-item >
                            <img src="imgs/index_img_little03(1.0).png" width="100%" alt="">
                        </el-carousel-item>
                    </el-carousel>
                    <!--小窗口图片结束-->
                </el-col>

                <el-col style="margin: 10px 0" span="12">
                    <!--中心介绍开始-->
                    <el-carousel height="200px" direction="vertical" :autoplay="false">
                        <el-card class="box-card" style="width:565px; height: 195px; border-radius: 5px; border-color:#E6A23C ">
                            <div slot="header" class="clearfix">
                                <i class="el-icon-star-on"></i>
                                <span>"老有所依"智慧敬老院 中心简介</span>
                            </div>
                            <div  class="text item">
                                <span>
                                    基于springboot的养老院管理系统，本系统为后台管理系统，
                                    分为三个角色，分别是超级管理员、管理员、用户。
                                    管理员的功能如下： 登录、修改密码、账号管理、健康档案管理。
                                </span>

                            </div>
                        </el-card>
                    </el-carousel>
                    <!--小窗口图片结束-->
                </el-col>


                <el-col style="margin: 10px 0;" span="6">
                    <!--右侧边新闻开始-->
                    <div style="height:28px ;margin: 0 auto;line-height: 28px; padding: 0 20px;color:white;background-color: #E6A23C">
                        <span style="margin: 0 auto">社会关怀</span>
                    </div>
                    <el-card  class="box-card" style="width: 100%; margin: 10px 0;height: 158px;border-radius: 5px; border-color:#E6A23C ">
                        <div  class="text item">
                            <a href="" style="color: #E6A23C;">市领导来我院视察</a>
                            <span style="float: right">2022-12-23</span>
                        </div>
                        <div  class="text item">
                            <a href="" style="color: #E6A23C;">抗原检测阳性怎么办?</a>
                            <span style="float: right">2022-12-24</span>
                        </div>
                        <div  class="text item">
                            <a href="" style="color: #E6A23C;">我院续费指南</a>
                            <span style="float: right">2022-12-25</span>
                        </div>
                        <div  class="text item">
                            <a href="" style="color: #E6A23C;">欢迎各位家属莅临参观!</a>
                            <span style="float: right">2022-12-26</span>
                        </div>
                    </el-card>



                    <!--小窗口图片结束-->
                </el-col>
            </el-row>
        </el-main>
        <el-footer>
            <div style="background-image: url('imgs/wave.png');height: 95px">
            </div>
            <div style="text-align: center;background-color: #3f3f3f;
            color: #b1b1b1;padding: 30px 0">
                <p>Copyright © 北京达内金桥科技有限公司版权所有 京ICP备12003709号-3 京公网安备 11010802029572号</p>
                <p>涵盖20余门课程体系，致力于打造权威的IT职业教育学习平台</p>
                <p>达内在线WWW.TMOOC.CN 专注于IT职业技能培训</p>
            </div>
        </el-footer>
    </el-container>
</div>
</body>
<!--引入axios和vue框架-->
<script src="https://cdn.bootcdn.net/ajax/libs/axios/0.21.1/axios.min.js"></script>
<!-- import Vue before Element -->
<script src="https://cdn.staticfile.org/vue/2.6.14/vue.min.js"></script>
<!-- import JavaScript -->
<script src="https://cdn.staticfile.org/element-ui/2.15.9/index.min.js"></script>
<script>
    let v = new Vue({
        el: '#app',
        data: function () {
            return {
                currentIndex: "1-1",
                categoryArr:[],
                bannerArr:[],
                topArr:[],
                productArr:[],
                wd:""
            }
        },
        methods:{
            handleSelect(key,keyPath){
                if (key=="1-1"){
                    location.href = "index.html";
                }else if(key="1-2"){
                    location.href="login.html"
                }
            },
            search(){
                if (v.wd.trim()==""){
                    v.$message.error("请输入搜索的内容!");
                    return;
                }
                //和点击分类显示结果一样 复用同一个页面
                location.href="/result.html?wd="+v.wd;
            }
        },

    })
</script>
</html>